package com.ahm.consumer.controller;

import com.ahm.consumer.pojo.Order;
import com.ahm.consumer.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author anhaimeng
 * @title: OrderController
 * @projectName eurekademo002
 * @description: TODO
 * @date 2021/10/199:51
 */
/*功能描述
 * @author ahm
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderService orderService;


    @RequestMapping("{id}")
    public Order selectOrderById(@PathVariable Integer id){
       return  orderService.selectOrderById(id);
    }

}
